import request from './request'

export const searchHome = () => {
  return request({
    url: 'home',
    method: 'GET'
  })
}

export const searchPromo = () => {
  return request({
    url: 'home/promo',
    method: 'GET'
  })
}

export const searchBanner = () => {
  return request({
    url: 'home/banner',
    method: 'GET'
  })
}

export const searchMenu = () => {
  return request({
    url: 'home/menu',
    method: 'GET'
  })
}

export const searchSwiper = () => {
  return request({
    url: 'home/swiper',
    method: 'GET'
  })
}

export const searchShow = (categoryTwo_id: number) => {
  return request({
    url: 'home/show',
    method: 'GET',
    params: { categoryTwo_id }
  })
}

export const searchShow2 = (categoryOne_id: number) => {
  return request({
    url: 'home/show2',
    method: 'GET',
    params: { categoryOne_id }
  })
}
